﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DXApplicationTangche.UC.生产计划.批次打印.service;
using DXApplicationTangche.UC.订单一览新.订单预览新.service;
using DXApplicationTangche.DTO;
using DXApplicationTangche.report;
using DevExpress.XtraReports.UI;

namespace DXApplicationTangche.UC.生产计划
{
    public partial class Form批次打印订单纸 : DevExpress.XtraEditors.XtraForm
    {
        private OrderCommitDTO返回 OrderCommitDTO返回 = new OrderCommitDTO返回();
        public Form批次打印订单纸()
        {
            InitializeComponent();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            
            try
            {
                this.OrderCommitDTO返回 = 批次打印Service.get批次打印("SM-20200825-000014");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            Image pic款式 = null;
            Image pic面料 = null;
            订单导出DTO 订单导出DTO = new 订单导出DTO(this.OrderCommitDTO返回, pic款式, pic面料);
            List<订单导出DTO> 订单导出DTOs = new List<订单导出DTO>();
            订单导出DTOs.Add(订单导出DTO);
            //XtraReport批次打印 report = new XtraReport批次打印();
            //report.DataSource = 订单导出DTOs;
            //ReportPrintTool tool = new ReportPrintTool(report);
            //tool.ShowPreview();

        }
    }
}